x86/svm Fixes and cleanup to svm_inject_event()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Jul 2018 09:22:42 +0000 (11:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:22:42 +0000 (11:22 +0200)
commitb53e0defcea1400c03f83d1d5cc30a3b237c8cfe
treea9a9a39c6be5932a4b173b0257bfd47e27089008
parenta44cf0c8728e08858638170a057675ca5479fdc7
x86/svm Fixes and cleanup to svm_inject_event()

 * State adjustments (and debug tracing) for #DB/#BP/#PF should not be done
   for `int $n` instructions.  Updates to %cr2 occur even if the exception
   combines to #DF.
 * Don't opencode DR_STEP when updating %dr6.
 * Simplify the logic for calling svm_emul_swint_injection() as in the common
   case, every condition needs checking.
 * Fix comments which have become stale as code has moved between components.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
master commit: 8dab867c81ede455009028a9a88edc4ff3b9da88
master date: 2018-07-17 10:12:40 +0100
xen/arch/x86/hvm/svm/svm.c